package com.lingnan.wanxiangxinxun.service;

import com.lingnan.wanxiangxinxun.entity.po.NewsCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lingnan.wanxiangxinxun.entity.vo.common.PageVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 新闻分类表 服务类
 * </p>
 *
 * @author swl
 * @since 2025-03-13
 */
public interface INewsCategoryService extends IService<NewsCategory> {

    List<NewsCategory> getNewsCategoryListByIds(List<Integer> ids);

    PageVO<NewsCategory> getAllNewsCategoryInPage(long current, long size);

    // 获取各个新闻类型的浏览量
    Map<NewsCategory, Integer> getViewNumOfVariousNews();
}
